import javax.imageio.ImageIO;
import javax.swing.*;
import javax.tools.JavaCompiler;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Nervaner
 * Date: 29.11.11
 * Time: 13:53
 * To change this template use File | Settings | File Templates.
 */
public class main {

    public static void main (String[] args) {
        ImageFormer imageFormer = new ImageFormer();
       /*
        File f = new File("image.jpg");
        ImagePanel imagePanel = new ImagePanel();
        try {
            imagePanel.setImage(ImageIO.read(new File("picture.jpg")));
        } catch (IOException e) {
            e.printStackTrace();
        }
        JFrame frame = new JFrame("Some frame");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setPreferredSize(new Dimension(imagePanel.getImage().getWidth(frame), imagePanel.getImage().getHeight(frame)));
        JButton b = new JButton("do something");
        b.setActionCommand("blow up");
        b.addActionListener(imageFormer);
        JPanel panel = new JPanel();
        panel.add(b);
        imagePanel.add(panel, BorderLayout.NORTH);
        frame.add(imagePanel);
        imageFormer.setImage(imagePanel.getImage());


        frame.pack();
        frame.setVisible(true);      */

    }
}
